/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import java.util.Iterator;
import java.util.List;
import util.DBDescriptor;

/**
 *
 * @author ademar.concrete
 */
public class Teste {

    public static void main(String[] args) {
        
        List<DBDescriptor> dbs = DBDescriptor.list();
        DBDescriptor db = new DBDescriptor();
        db.setHost("localhost");
        db.setPorta("3306");
        db.setSenha("qw34rt");
        db.setUsuario("aaaaaaa");
        db.setUltimaConexao(true);

        db.salvar();

        dbs = DBDescriptor.list();
        for (Iterator<DBDescriptor> it = dbs.iterator(); it.hasNext();) {
            DBDescriptor dBDescriptor = it.next();
            System.out.println(dBDescriptor);
        }

    }
}
